{include file="public/header" /}
<style type="text/css">
	/* TAB */
	
	.nav-tabs.nav>li>a {
		padding: 10px 25px;
		margin-right: 0;
	}
	
	.nav-tabs.nav>li>a:hover,
	.nav-tabs.nav>li.active>a {
		border-top: 3px solid #1ab394;
		padding-top: 8px;
		border-bottom: 1px solid #FFFFFF;
	}
	
	.nav-tabs>li>a {
		color: #A7B1C2;
		font-weight: 500;
		margin-right: 2px;
		line-height: 1.42857143;
		border: 1px solid transparent;
		border-radius: 0;
	}
</style>

<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<h5>网站配置</h5>
						<div class="ibox-tools">
							<a class="collapse-link">
								<i class="fa fa-chevron-up"></i>
							</a>
							<a class="dropdown-toggle" data-toggle="dropdown" href="form_basic.html#">
								<i class="fa fa-wrench"></i>
							</a>
							<a class="close-link">
								<i class="fa fa-times"></i>
							</a>
						</div>
					</div>
					<div class="ibox-content">
						<div class="panel blank-panel">
							<div class="panel-heading">
								<div class="panel-options">
									<ul class="nav nav-tabs">
										<li class="active">
											<a data-toggle="tab" href="#tab-1" aria-expanded="true">基本配置</a>
										</li>
										<li class="">
											<a data-toggle="tab" href="#tab-2" aria-expanded="false">短信配置</a>
										</li>
										<li class="">
											<a data-toggle="tab" href="#tab-3" aria-expanded="false">支付配置</a>
										</li>
										<li class="">
											<a data-toggle="tab" href="#tab-4" aria-expanded="false">微信配置</a>
										</li>
										<li class="">
											<a data-toggle="tab" href="#tab-5" aria-expanded="false">第三方登录配置</a>
										</li>
									</ul>
								</div>
							</div>
							<div class="panel-body">
								<div class="tab-content">
									<div id="tab-1" class="tab-pane active">
										<form action="{:url('save')}" method="post" class="form-horizontal">
											<div class="hr-line-dashed"></div>
											<input type="hidden" name="{$name['0']}" value="{$name['0']}" />
											<div class="form-group">
												<label class="col-sm-2 control-label">网站标题：</label>
												<div class="input-group col-sm-4">
													<input type="text" class="form-control" name="site_title" value="{$config0.site_title}">
													<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 网站标题</span>
												</div>
											</div>
											<div class="hr-line-dashed"></div>
											<div class="form-group">
												<label class="col-sm-2 control-label">网站描述：</label>
												<div class="input-group col-sm-4">
													<textarea class="form-control" type="text" rows="3" name="seo_desc">{$config0.seo_desc}</textarea>
													<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 网站搜索引擎描述</span>
												</div>
											</div>
											<div class="hr-line-dashed"></div>
											<div class="form-group">
												<label class="col-sm-2 control-label">网站关键字：</label>
												<div class="input-group col-sm-4">
													<textarea class="form-control" type="text" rows="3" name="seo_keyword">{$config0.seo_keyword}</textarea>
													<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 网站搜索引擎关键字</span>
												</div>
											</div>
											<div class="hr-line-dashed"></div>
											<div class="form-group">
												<label class="col-sm-2 control-label">网站备案号：</label>
												<div class="input-group col-sm-4">
													<input type="text" class="form-control" name="seo_title" value="{$config0.seo_title}">
													<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 设置在网站底部显示的备案号，如“ 陇ICP备15002349号-1</span>
												</div>
											</div>

											<div class="hr-line-dashed"></div>
											<div class="form-group">
												<label class="col-sm-2 control-label">版权信息：</label>
												<div class="input-group col-sm-4">
													<input type="text" class="form-control" name="copyright" value="{$config0.copyright}">
													<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 设置在网站底部显示的版权信息</span>
												</div>
											</div>

											<div class="hr-line-dashed"></div>
											<div class="form-group">
												<div class="col-sm-4 col-sm-offset-3">
													<button class="btn btn-primary" type="submit"><i class="fa fa-save"></i> 保存信息</button>&nbsp;&nbsp;&nbsp;
													<a class="btn btn-danger" href="javascript:history.go(-1);"><i class="fa fa-close"></i> 返回</a>
												</div>
											</div>
										</form>
									</div>
									<div id="tab-2" class="tab-pane">
										<form action="{:url('save')}" method="post" class="form-horizontal">
											<div class="hr-line-dashed"></div>
											<input type="hidden" name="{$name['1']}" value="{$name['1']}" />
											<div class="form-group">
												<label class="col-sm-3 control-label">阿里大于APP Key：</label>
												<div class="input-group col-sm-4">
													<input type="text" id="sms_app_key]" name="app_key" value="{$config1.app_key}" placeholder="阿里大于APP Key" class="form-control" required>
												</div>
											</div>
											<div class="hr-line-dashed"></div>
											<div class="form-group">
												<label class="col-sm-3 control-label">阿里大于APP Secret：</label>
												<div class="input-group col-sm-4">
													<input type="text" id="sms_app_secret]" name="app_secret" value="{$config1.app_secret}" placeholder="阿里大于APP Secret" class="form-control" />
												</div>
											</div>
											<div class="hr-line-dashed"></div>
											<div class="form-group">
												<label class="col-sm-3 control-label">验证码过期时间（秒）：</label>
												<div class="input-group col-sm-4">
													<input type="text" id="sms_verify_time]" name="app_secret" value="{$config1.verify_time}" placeholder="阿里大于APP Secret" class="form-control" />
												</div>
											</div>
											<div class="hr-line-dashed"></div>
											<div class="form-group">
												<label class="col-sm-3 control-label">短信模板：</label>
												<div class="input-group col-sm-4">
													<a class="btn btn-success" href="{:url('sms_template/index')}">前去配置短信模板</a>
												</div>
											</div>
											<div class="form-group">
												<label class="col-sm-3 control-label"></label>
												<div class="input-group col-sm-4">
													<a target="_blank" href="http://www.alidayu.com/">点此前往阿里大于获取短信配置</a>
												</div>
											</div>
											<div class="hr-line-dashed"></div>
											<div class="form-group">
												<div class="col-sm-4 col-sm-offset-3">
													<button class="btn btn-primary" type="submit"><i class="fa fa-save"></i> 保存</button>
												</div>
											</div>
										</form>
									</div>
									<div id="tab-3" class="tab-pane">
										<form action="{:url('save')}" method="post" class="form-horizontal">
											<input type="hidden" name="{$name['3']}" value="{$name['3']}" />
											<h4 style="margin: 0 20px;">支付宝手机支付</h4>
											<div class="hr-line-dashed"></div>
											<div class="form-group">
												<label class="col-sm-3 control-label">开启支付宝：</label>
												<div class="input-group col-sm-4">
													<div class="onoffswitch">
														<input name="alipay_status" id="alipay_status" type="checkbox" {if $config3.alipay_status}checked{/if} class="onoffswitch-checkbox">
														<label class="onoffswitch-label" for="alipay_status">
                                    <span class="onoffswitch-inner"></span>
                                    <span class="onoffswitch-switch"></span>
                                </label>
													</div>
												</div>
											</div>
											<div class="hr-line-dashed"></div>
											<div class="form-group">
												<label class="col-sm-3 control-label">合作身份者ID：</label>
												<div class="input-group col-sm-4">
													<input type="text" id="alipay_partner]" name="alipay_partner" value="{$config3.alipay_partner}" placeholder="合作身份者ID" class="form-control">
												</div>
											</div>
											<div class="hr-line-dashed"></div>
											<div class="form-group">
												<label class="col-sm-3 control-label">收款支付宝账号：</label>
												<div class="input-group col-sm-4">
													<input type="text" id="alipay_seller_id]" name="alipay_seller_id" value="{$config3.alipay_seller_id}" placeholder="收款支付宝账号" class="form-control" />
												</div>
											</div>
											<div class="hr-line-dashed"></div>
											<div class="form-group">
												<label class="col-sm-3 control-label">MD5密钥：</label>
												<div class="input-group col-sm-4">
													<input type="text" id="alipay_key]" name="alipay_key" value="{$config3.alipay_key}" placeholder="MD5密钥" class="form-control" />
												</div>
											</div>
											<div class="form-group">
												<label class="col-sm-3 control-label"></label>
												<div class="input-group col-sm-4">
													<a target="_blank" href="https://b.alipay.com/order/pidAndKey.htm">点此获取支付宝配置</a>
													&nbsp;&nbsp;&nbsp;
													<a target="_blank" href="{:url('index/payment/alipay')}">点此测试接口</a>
												</div>
											</div>
											<div class="hr-line-dashed"></div>
											<h4 style="margin: 0 20px;">微信支付</h4>
											<div class="hr-line-dashed"></div>
											<div class="form-group">
												<label class="col-sm-3 control-label">开启微信支付：</label>
												<div class="input-group col-sm-4">
													<div class="onoffswitch">
														<input name="wxpay_status" id="wxpay_status" type="checkbox" {if $config3.wxpay_status}checked{/if} class="onoffswitch-checkbox">
														<label class="onoffswitch-label" for="wxpay_status">
                                    <span class="onoffswitch-inner"></span>
                                    <span class="onoffswitch-switch"></span>
                                </label>
													</div>
												</div>
											</div>
											<div class="hr-line-dashed"></div>
											<div class="form-group">
												<label class="col-sm-3 control-label">微信APPID：</label>
												<div class="input-group col-sm-4">
													<input type="text" id="wxpay_appid]" name="wxpay_appid" value="{$config3.wxpay_appid}" placeholder="微信APPID" class="form-control">
												</div>
											</div>
											<div class="hr-line-dashed"></div>
											<div class="form-group">
												<label class="col-sm-3 control-label">微信AppSercet：</label>
												<div class="input-group col-sm-4">
													<input type="text" id="wxpay_appsercet]" name="wxpay_appsercet" value="{$config3.wxpay_appsercet}" placeholder="微信AppSercet" class="form-control">
												</div>
											</div>
											<div class="hr-line-dashed"></div>
											<div class="form-group">
												<label class="col-sm-3 control-label">微信商户ID：</label>
												<div class="input-group col-sm-4">
													<input type="text" id="wxpay_mchid]" name="wxpay_mchid" value="{$config3.wxpay_mchid}" placeholder="微信商户ID" class="form-control">
												</div>
											</div>
											<div class="hr-line-dashed"></div>
											<div class="form-group">
												<label class="col-sm-3 control-label">商户支付密钥：</label>
												<div class="input-group col-sm-4">
													<input type="text" id="wxpay_key]" name="wxpay_key" value="{$config3.wxpay_key}" placeholder="商户支付密钥" class="form-control">
												</div>
											</div>
											<div class="hr-line-dashed"></div>
											<h4 style="margin: 0 20px;">银联支付</h4>
											<div class="hr-line-dashed"></div>
											<div class="form-group">
												<label class="col-sm-3 control-label">开启银联支付：</label>
												<div class="input-group col-sm-4">
													<div class="onoffswitch">
														<input name="unionpay_status" id="unionpay_status" type="checkbox" {if $config3.unionpay_status}checked{/if} class="onoffswitch-checkbox">
														<label class="onoffswitch-label" for="unionpay_status">
                                    <span class="onoffswitch-inner"></span>
                                    <span class="onoffswitch-switch"></span>
                                </label>
													</div>
												</div>
											</div>
											<div class="hr-line-dashed"></div>
											<div class="form-group">
												<label class="col-sm-3 control-label">银联商户ID：</label>
												<div class="input-group col-sm-4">
													<input type="text" id="unionpay_merId]" name="unionpay_merId" value="{$config3.unionpay_merId}" placeholder="商户支付密钥" class="form-control">
												</div>
											</div>
											<div class="hr-line-dashed"></div>
											<div class="form-group">
												<div class="col-sm-4 col-sm-offset-3">
													<button class="btn btn-primary" type="submit"><i class="fa fa-save"></i> 保存</button>
												</div>
											</div>
									</div>
									</form>
									<div id="tab-4" class="tab-pane">
										<form action="{:url('save')}" method="post" class="form-horizontal">
											<input type="hidden" name="{$name['2']}" value="{$name['2']}" />
											<div class="form-group">
												<label class="col-sm-3 control-label">公众号名称：</label>
												<div class="input-group col-sm-4">
													<input type="text" id="we_name]" name="we_name" value="{$config2.we_name}" placeholder="公众号名称" class="form-control" required>
												</div>
											</div>
											<div class="hr-line-dashed"></div>
											<div class="form-group">
												<label class="col-sm-3 control-label">公众号原始ID：</label>
												<div class="input-group col-sm-4">
													<input type="text" id="we_id]" name="we_id" value="{$config2.we_id}" placeholder="公众号原始ID" class="form-control" />
												</div>
											</div>
											<div class="hr-line-dashed"></div>
											<div class="form-group">
												<label class="col-sm-3 control-label">微信号：</label>
												<div class="input-group col-sm-4">
													<input type="text" id="we_no]" name="we_no" value="{$config2.we_no}" placeholder="微信号" class="form-control" />
												</div>
											</div>
											<div class="hr-line-dashed"></div>
											<div class="form-group">
												<label class="col-sm-3 control-label">AppID：</label>
												<div class="input-group col-sm-4">
													<input type="text" id="appid]" name="appid" value="{$config2.appid}" placeholder="AppID" class="form-control" />
												</div>
											</div>
											<div class="hr-line-dashed"></div>
											<div class="form-group">
												<label class="col-sm-3 control-label">AppSecret：</label>
												<div class="input-group col-sm-4">
													<input type="text" id="appsecret]" name="appsecret" value="{$config2.appsecret}" placeholder="AppSecret" class="form-control" />
												</div>
											</div>
											<div class="hr-line-dashed"></div>
											<div class="form-group">
												<label class="col-sm-3 control-label">Token：</label>
												<div class="input-group col-sm-4">
													<input type="text" id="token]" name="token" value="{$config2.token}" placeholder="Token" class="form-control" />
												</div>
											</div>
											<div class="hr-line-dashed"></div>
											<div class="form-group">
												<label class="col-sm-3 control-label">EncodingAESKey：</label>
												<div class="input-group col-sm-4">
													<input type="text" id="encodingaeskey]" name="encodingaeskey" value="{$config2.encodingaeskey}" placeholder="EncodingAESKey" class="form-control" />
												</div>
											</div>
											<div class="form-group">
												<label class="col-sm-3 control-label">URL服务器地址：</label>
												<div class="input-group col-sm-4">
													http://test.ilong3.cn/wechat
												</div>
											</div>
											<div class="form-group">
												<label class="col-sm-3 control-label">网页授权回调域名：</label>
												<div class="input-group col-sm-4">
													http://a2.ilong3.cn
												</div>
											</div>
											<div class="hr-line-dashed"></div>
											<div class="form-group">
												<div class="col-sm-4 col-sm-offset-3">
													<button class="btn btn-primary" type="submit"><i class="fa fa-save"></i> 保存</button>
												</div>
											</div>
									</div>
									</form>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	{include file="public/footer" /}

</body>

</html>